package com.yidu.hbats.service.emp;

import com.yidu.hbats.model.AtsEmpCoachAthlete;
import com.yidu.utils.Page;

import java.util.List;

/**
 * 运动员和教练训练项目信息接口
 */
public interface AtsEmpCoachAthleteService {

    /**
     * 新增或修改
     * @param atsEmpCoachAthlete 训练项目信息对象
     * @return 影响行数
     */
    public int saveOrUpdate(AtsEmpCoachAthlete atsEmpCoachAthlete);

    /**
     * 根据训练项目id查找
     * @param id
     * @return
     */
    public AtsEmpCoachAthlete findById(int id);

    /**
     * 查询所有的训练项目   带分页
     * @param atsEmpCoachAthlete
     * @param page
     * @return
     */
    public List<AtsEmpCoachAthlete> selectAll(AtsEmpCoachAthlete atsEmpCoachAthlete, Page page);


    /**
     * 查询总行数
     * @param atsEmpCoachAthlete
     * @return
     */
    public int selectCount(AtsEmpCoachAthlete atsEmpCoachAthlete);


    /**
     * 查询所有训练项目  不带分页
     * @param atsEmpCoachAthlete
     * @return
     */
    public List<AtsEmpCoachAthlete> findAll(AtsEmpCoachAthlete atsEmpCoachAthlete);
}
